//
//  PostDeailView.swift
//  skincare
//
//  Created by whu125 on 2023/4/24.
//

import SwiftUI

struct PostDetailView: View {
    let post: Post
      
      var body: some View {
        VStack {
          Image(post.image)
            .resizable()
            .aspectRatio(contentMode: .fit)
          
          Text(post.title)
            .font(.headline)
            .foregroundColor(.primary)
            .padding()
          
          // Add more details about the post here...
        }
      }
}

//struct PostDetailView_Previews: PreviewProvider {
//    static var previews: some View {
//        PostDetailView()
//    }
//}
